package com.itheima.array2;

public class Demo06 {
    public static void main(String[] args) {
        int[][] arr = new int[3][3];
        //增
        arr[0][0] = 11;
        arr[0][1] = 22;
        arr[0][2] = 33;
        arr[1][0] = 44;
        arr[1][1] = 55;
        arr[1][2] = 66;
        arr[2][0] = 77;
        arr[2][1] = 88;
        arr[2][2] = 99;

        //遍历 二维数组
        for (int i = 0; i < arr.length; i++) {//外层循环  对二维数组进行遍历
            //arr[i]
            //System.out.println(arr[i]);
           // int[] temp=arr[i];
            for (int j = 0; j < arr[i].length; j++) {//内层循环  对一维数组进行遍历
                //arr[i][i]
                System.out.println(arr[i][j]);
            }

        }





    }


}
